 $(function() {
	var userId = getQueryString('userId');
	var personInfoUrl = '/o2o/exceladmin/getpersonmanagementinfo?userId=' + userId;
	getlist();
	function getlist(e) {
		$.ajax({
			url : "/o2o/exceladmin/getpersonInfolist",
			type : "get",
			dataType : "json",
			success : function(data) {
				if (data.success) {
					handleUser(data.user);
				}
			}
		});
	}
	$.getJSON(personInfoUrl, function(data) {
		if (data.redirect) {

			window.location.href = data.url;
		} else {
			if (data.userId != undefined && data.userId != null) {
				userId = data.userId;
				$('#user-name').text(data.teacherName);
			}
			$('#excelInfo')
					.attr('href', '/o2o/exceladmin/testinput?userId=' + userId);
			//$('#excelInfo')
					//.attr('href', '/o2o/exceladmin/exceloperation?excelId=' + excelId);
		}
	});
});

